package com.scorpio.user.api.feign;

import com.scorpio.user.api.entity.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author sdaduanbilei
 */
@FeignClient(value = "service-user")
public interface IUser2Client {
    String API_PREFIX = "/user";
    String LIST = API_PREFIX + "/list";

    /**
     * 获取所以
     * @return
     */
    @GetMapping(LIST)
    List<UserVo> getAll();

}
